package com.square.service.gateway;

import com.square.service.common.utils.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;


@EnableDiscoveryClient
@EnableFeignClients("com.square.service.*.*.feign")
@SpringBootApplication(scanBasePackages = "com.square.*", exclude = DataSourceAutoConfiguration.class)
public class SquareServiceGatewayApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SquareServiceGatewayApplication.class, args);
        SpringContextUtil.setApplicationContext(context);
    }

}
